package com.mariusz.managers;

import java.util.ArrayList;
import java.util.List;

import javax.swing.table.DefaultTableModel;

import com.mariusz.data.dto.Property;
import com.mariusz.data.dto.Room;
import com.mariusz.ui.models.PropertiesListModel;
import com.mariusz.ui.models.PropertiesTableModel;

public class PropertyManager {
	private List<Property> properties = new ArrayList<Property>();
	private static PropertyManager instance = new PropertyManager();
		
	public static PropertyManager getInstance(){
		return instance; 
	}
	
	private PropertyManager(){
		
	}
	
	public PropertiesTableModel getTableContent(){
		DataManager m = DataManager.getInstance();
		PropertiesTableModel model = new PropertiesTableModel(m.getProperties());
		return model;
	}
	
	public List<Property> getProperties(){
		DataManager m = DataManager.getInstance();
		return m.getProperties();
	}

}
